﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Project07
{
    class Object
    {
        private Texture2D texture;
        public Texture2D Texture
        {
            get { return texture; }
            set { texture = value; }
        }
        private float length;
        public float Length
        {
            get { return length; }
            set { length = value; }
        }

        private float width;
        public float Width
        {
            get { return width; }
            set { width = value; }
        }

        private float height;
        public float Height
        {
            get { return height; }
            set { height = value; }
        }

        private float mass;
        public float Mass
        {
            get { return mass; }
            set { mass = value; }
        }

        private Vector2 position;
        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }

        private float positionX;
        public float PositionX
        {
            get { return positionX; }
            set { positionX = value; }
        }

        private float positionY;
        public float PositionY
        {
            get { return positionY; }
            set { positionY = value; }
        }

        private Vector2 origin;
        public Vector2 Origin
        {
            get { return origin; }
            set { origin = value; }        
        }

        private float velocity;
        public float Velocity
        {
            get { return velocity; }
            set { velocity = value; }
        }

        private float acceleration;
        public float Acceleration
        {
            get { return acceleration; }
            set { acceleration = value; }
        }

        public Vector2 OffSet { get; set; }
        
        public Object(Texture2D texture, float length, float width, float height, Vector2 position, float mass)
        {            
            this.texture = texture;
            this.length = length;
            this.width = width;
            this.height = height;
            //this.position = position;
            this.positionX = position.X;
            this.positionY = position.Y;
            this.mass = mass;

            position = new Vector2(positionX, positionY);

            origin = new Vector2(0, height);
            
            OffSet = new Vector2(0, 450);              
        }
    }
}
